<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
  <div id="app">

  </div>
</body>
<script>
    Vue.component("Test",{
        data:function () {
          return {
              msg:"hello world"
          }
        },
        template:"<div><div>{{msg}}</div></div>"
    });

    var App = {
        data:function () {
            return {}
        },
        template:"<div class='app'><Test></Test></div>"
    };

    new Vue({
        el:"#app",
        data:function () {
            return {}
        },
        components:{
            App:App
        },
        template:"<App></App>"

    });
</script>
</html>